#!/bin/bash
read -p "username:" u_name
read -p "number:" num
for i in `seq $num`
do
	id ${u_name}$i
	if (( $? == 0 ))
	then
		echo "user aleady exists"
	else
		 useradd ${u_name}$i 
		echo "create user ok"
	fi
done

